/**
 * 200
 * @param code
 * @returns {boolean}
 */
export function is200(code: number) {
    return parseInt(String(code / 1000000)) === 200
}

/**
 * 403
 * @param code
 * @returns {boolean}
 */
export function is401(code: number) {
    return parseInt(String(code / 1000000)) === 401
}

/**
 * 403
 * @param code
 * @returns {boolean}
 */
export function is403(code: number) {
    return parseInt(String(code / 1000000)) === 403
}

/**
 * 403
 * @param code
 * @returns {boolean}
 */
export function is404(code: number) {
    return parseInt(String(code / 1000000)) === 404
}

/**
 * 403
 * @param code
 * @returns {boolean}
 */
export function is407(code: number) {
    return parseInt(String(code / 1000000)) === 407
}

/**
 * 403
 * @param code
 * @returns {boolean}
 */
export function is500(code: number) {
    return parseInt(String(code / 1000000)) === 500
}

